package com.yxzc.chapter12

object MatchTypeDetail {
  def main(args: Array[String]): Unit = {


    var obj = 10
    if(obj == 10){
      obj  = 21
    }else{

    }
    val result = obj match {
      case a: Int => a
      //case b: Map[String, Int] => "Map集合"
      case _ => "啥也不是"
    }

  }
}
